<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <!-- https://blog.csdn.net/a460550542/article/details/83383032 -->
    <script>
        let scrollEvent = window.scroll;
        console.log('scrollEvent', scrollEvent);
        function goInput(e) {
            // 检查事件对象是否冒泡
            if (!e.bubbles) {
                // 如果不冒泡,则手动传递事件
                console.log('不冒泡');
            }else{//冒泡的话
                console.log('冒泡');
            }

        }
        let res=goInput(scrollEvent);
        console.log('res',res);
    </script>
</body>

</html>